Grammatical Aspects for Language Descriptions

نویسنده

  • Andrey Breslav
چکیده

For the purposes of tool development, computer languages are usually described using context-free grammars with annotations such as semantic actions or pretty-printing instructions. These descriptions are processed by generators which automatically build software, e.g., parsers, pretty-printers and editing support. In many cases the annotations make grammars unreadable, and when generating code for several tools supporting the same language, one usually needs to duplicate the grammar in order to provide different annotations for different generators. We present an approach to describing languages which improves read-ability of grammars and reduces the duplication. To achieve this we use Aspect-Oriented Programming principles. This approach has been implemented in an open-source tool named Grammatic. We show how it can be used to generate pretty-printers and syntax highlighters.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Grammatical Abilities in a Speech Sample of Persian-speaking Children With Cochlear Implants

Objectives: Studies reported that children with Cochlear Implant (Cl) presented difficulties in grammatical acquisition. The Persian language is inflectional. The present study aimed to compare word-level inflections in the language samples of CI recipients and healthy-hearing children. Methods: Thirty children were recruited in this descriptive-analytical cross-sectional study. The Language S...

متن کامل

Grammatical gender affects odor cognition

Language interacts with olfaction in exceptional ways. Olfaction is believed to be weakly linked with language, as demonstrated by our poor odor naming ability, yet olfaction seems to be particularly susceptible to linguistic descriptions. We tested the boundaries of the influence of language on olfaction by focusing on a non-lexical aspect of language (grammatical gender). We manipulated the g...

متن کامل

Language CoLLAGE: Grammatical Description with the LinGO Grammar Matrix

Language CoLLAGE is a collection of grammatical descriptions developed in the context of a grammar engineering graduate course with the LinGO Grammar Matrix. These grammatical descriptions include testsuites in well-formed interlinear glossed text (IGT) format, high-level grammatical characterizations called ‘choices files’, HPSG grammar fragments (capable of parsing and generation), and docume...

متن کامل

Grammatical aspect in language production: Using gesture to reveal event representations

Grammatical aspect is a pervasive linguistic device that, according to linguistic analyses, allows speakers to encode different ways of construing events. For instance, the progressive (I am writing a book) is thought to reflect increased focus on the internal details of an event, as contrasted with the perfect (I have written a book). However, there is to date no experimental evidence that spe...

متن کامل

The Effect of Task Repetition under Different Time Conditions on EFL Learners' Oral Performance and Grammatical Knowledge Gain

This quasi-experimental study aimed to investigate the effect of task repetition under four conditions on the three dimensions of oral production (accuracy, complexity and fluency) and grammatical knowledge gain of learners of English as a Foreign Language (EFL). 40 young learners of English as a Foreign Language in four classes were randomly assigned into one of the following groups: repetitio...

متن کامل

Grammatical Framework (GF) for MT in sublanguage domains

Grammatical Framework (GF) is a meta-language for multilingual linguistic descriptions, which can be used to build rule-based interlingua MT applications in natural sublanguage domains. The GF open-source package contains linguistic and computational resources to facilitate language engineering including: a resource grammar library for ten languages, a user interface for multilingual authoring ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1001.2817  شماره 

صفحات  -

تاریخ انتشار 2010